package behavioralPattern.mediator.example01;

public class Client {
    public static void main(String[] args) {
        // 创建中介者
        Mediator mediator = new ConcreteMediator();

        // 创建同事对象
        ConcreteColleague_A colleague_a = new ConcreteColleague_A(mediator);
        ConcreteColleague_B colleague_b = new ConcreteColleague_B(mediator);

        colleague_a.exec("key_A");
        colleague_b.exec("key_B");
    }
}
